package com.rybbaby.tss.tasks.core.task.service;


import com.rybbaby.tss.tasks.core.task.entity.TssMemberPackage;
import com.rybbaby.tss.tasks.core.web.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * @author 雷春琼
 * @description 会员课时包数据库操作服务接口
 * @createDate 2017-08-10 上午12:04:35
 */
public interface ITssMemberPackageService extends IBaseService<TssMemberPackage> {
    /**
     * 亲子每日考勤扣除课时
     *
     * @param attendance
     * @return
     */
    boolean deductiveHours(List<Map<String, Object>> attendance);

    /**
     * 亲子补课 课时处理
     * @param attendance
     * @return
     */
    boolean remediationClassHour(List<Map<String, Object>> attendance);

    /**
     * 过渡出勤
     * @param transitionAttendance
     * @return
     */
    boolean transitionAttendance(List<Map<String, Object>> transitionAttendance);

    /**
     * 过渡缺勤
     * @param absentDays
     * @return
     */
    boolean absentDays(List<Map<String, Object>> absentDays);

    /**
     * 修改 课时包有效期
     * @return
     */
    Integer updatePackageValidity();
}
